package com.ms.mapper;

import com.ms.pojo.Leave_apply;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface UserLeaveMapper {
    /**
     * 新增请假申请
     * @param leave_apply 请假申请对象
     */
    @Insert("INSERT INTO leave_apply (emp_id, approver_id, leave_type, start_time, end_time, leave_days, reason, apply_status, apply_time) VALUES (#{empId}, #{approverId}, #{leaveType}, #{startTime}, #{endTime}, #{leaveDays}, #{reason}, #{applyStatus}, #{applyTime})")
    int insertLeaveApply(Leave_apply leave_apply);
}
